
function requestFans(parma, callback) {
  console.log(parma)
  getApp().func.Post(false, getApp().api.get_me_fans, parma,
    function (data) {
      typeof callback == "function" && callback(data)
    },
    function (error) {
      console.log("^^^^^^^^^^")
      wx.showToast({
        title: error.errMsg,
        icon: 'none',
        duration: 2000,
      })
    }
  )
};
function requestAddFans(parma, callback) {
  console.log(parma)
  getApp().func.Post(false, getApp().api.put_fans, parma,
    function (data) {
      typeof callback == "function" && callback(data)
    },
    function (error) {
      wx.showToast({
        title: error.data.message,
        icon: 'none',
        duration: 2000,
      })
    }
  )
};
function requestOtherFans(parma, callback) {
  console.log(parma)
  getApp().func.Post(false, getApp().api.get_fans_page, parma,
    function (data) {
      typeof callback == "function" && callback(data)
    },
    function (error) {
      console.log("^^^^^^^^^^")
      wx.showToast({
        title: error.data.message,
        icon: 'none',
        duration: 2000,
      })
    }
  )
}

module.exports = {
  requestFans: requestFans,
  requestAddFans: requestAddFans,
  requestOtherFans: requestOtherFans
};



